

createjs.DisplayObject.prototype.setAnchorPoint = function (a, b) {
    var c = this.getBounds();
    this.regX = c.width * a;
    this.regY = c.height * b;
};
createjs.Container.prototype.addCenterChild = function (a) {
    a.setAnchorPoint(0.5, 0.5);
    var b = this.getBounds();
    a.x = b.x + 0.5 * b.width;
    a.y = b.y + 0.5 * b.height;
    this.addChild(a);
};
createjs.DisplayObject.prototype.do_cache = function () {
    var a = this.getBounds();
    this.cache(a.x, a.y, a.width, a.height);
};
